﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EcoSystem
{
    /// <summary>
    /// 业务权限配置数据源选项定义
    /// </summary>
    public class PermissionSourceOptions
    {
        /// <summary>
        /// 值类型
        /// </summary>
        public PermissionSourceKeyType KeyType { get; set; }

        /// <summary>
        /// 是否为树型结构数据源
        /// </summary>
        public bool IsTreeList { get; set; }

        /// <summary>
        /// 数据源
        /// </summary>
        public List<PermissionSourceOption> Options { get; set; }

        /// <summary>
        /// 扩展字段定义
        /// </summary>
        public List<PermissionSourceFieldItem> ExtraFields { get; set; }

        /// <summary>
        /// 远程接口URL调用配置
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 请求头
        /// </summary>
        public Dictionary<string, string> Headers { get; set; }

        /// <summary>
        /// 请求参数
        /// </summary>
        public Dictionary<string, string> QueryParams { get; set; }
    }
}
